package cn.kongwg.dao.impl;

import cn.kongwg.bean.Cart;
import cn.kongwg.bean.Order;
import cn.kongwg.bean.User;
import cn.kongwg.dao.BaseDao;
import cn.kongwg.dao.OrderDao;

/**
 * @author kongwg
 * @create 2021-02-01 11:20
 */
public class OrderDaoImpl extends BaseDao implements OrderDao {
    @Override
    public Integer saveOrder(Order order) {
        String sql = "insert into t_order(`order_id`,`create_time`,`price`,`status`,`user_id`) values(?,?,?,?,?)";
        return update(sql, order.getOrderId(), order.getCreateTime(), order.getPrice(), order.getStatus(), order.getUserId());
    }
}
